﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Principal/Inicial.Master" AutoEventWireup="true" CodeBehind="PasswordRecovery.aspx.cs" Inherits="Biciq.Web.UI.Account.PasswordRecovery" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxRoundPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<%@ Register Src="../Controles/WUCMensajes.ascx" TagName="WUCMensajes" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
    .style1
    {
        width: 100%;
    }
    .style2
    {
    }
    .style3
    {
    }
    .style4
    {
        width: 17px;
    }
</style>
      <script language="javascript">
<asp:literal id="litScript" runat="Server"></asp:literal>


</script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
    <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" 
    CssFilePath="~/App_Themes/BlackGlass/{0}/styles.css" CssPostfix="BlackGlass" 
    GroupBoxCaptionOffsetY="-22px" HeaderText="Recuperar Clave" 
    SpriteCssFilePath="~/App_Themes/BlackGlass/{0}/sprite.css" Width="100%">
    <ContentPaddings PaddingBottom="5px" PaddingLeft="2px" PaddingTop="5px" />
        <HeaderStyle Height="23px">
        <Paddings PaddingBottom="0px" PaddingLeft="3px" PaddingTop="0px" />
        </HeaderStyle>
    <PanelCollection>
        <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
            <table class="style1">
                <tr>
                    <td class="style2" colspan="3">
                        <asp:Label ID="Label1" runat="server" 
                            Text="Ingrese el email del Usuario del que desa recuperar la clave" 
                            Width="380%"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td class="style3">
                        <asp:Label ID="Label2" runat="server" Text="Email"></asp:Label>
                    </td>
                    <td class="style4">
                        <asp:TextBox ID="txtEmail" runat="server" style="margin-left: 0px" 
                            ValidationGroup="guardar" Width="271px"></asp:TextBox>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate="txtEmail" 
                            ErrorMessage="Debe ingresar el correo electrónico para recuperar la clave" 
                            Font-Names="symbol" ForeColor="Red" 
                            ToolTip="Debe ingresar el correo electrónico" ValidationGroup="guardar">¬</asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" 
                            ControlToValidate="txtEmail" Display="Dynamic" 
                            ErrorMessage="La dirección de email ingresada no es válida" Font-Names="Symbol" 
                            ForeColor="Red" SetFocusOnError="True" 
                            ToolTip="La direcci{on de email ingresada no es válida" 
                            ValidationExpression="^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$" 
                            ValidationGroup="guardar">¬</asp:RegularExpressionValidator>
                        <asp:ImageButton ID="btnRecuperarClave" runat="server" ImageUrl="~/img/Usuario.png" 
                            ToolTip="Recuperar Clave" ValidationGroup="guardar" Width="32px" 
                            OnClick="btnRecuperarClave_Click" />
                    </td>
                </tr>
                <tr>
                    <td class="style3" colspan="2">
                        <asp:ImageButton ID="btnSalir" runat="server" ImageUrl="~/img/grabar.png" 
                            ToolTip="Salir" Width="32px" OnClick="btnSalir_Click" />
                    </td>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>
        </dx:PanelContent>
    </PanelCollection>
</dx:ASPxRoundPanel>
<asp:UpdatePanel ID="UpdatePanelMensaje" runat="server">
        <ContentTemplate>
            <asp:LinkButton ID="LinkButtonMessage" runat="server"></asp:LinkButton>
           <asp:ModalPopupExtender ID="MessagePopup" runat="server" TargetControlID="LinkButtonMessage"
                BackgroundCssClass="modalBackground" PopupControlID="PanelMensaje" OkControlID="LinkButtonCloseMessage">
            </asp:ModalPopupExtender>


            <asp:Panel ID="PanelMensaje" runat="server" Width="75%" Style="display: none;">
                <asp:LinkButton ID="LinkButtonCloseMessage" runat="server" Font-Bold="True" Style="font-size: 7px;
                    color: #FFFFFF;" Text="i"></asp:LinkButton>
                <uc1:WUCMensajes ID="WUCMensaje" runat="server" />
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

